home *** CD-ROM | disk | FTP | other *** search
- On Mon, 6 Feb 1995, Christian Mumenthaler wrote:
-
- > Hi Chris!
- >
- > As I had stated in my mail, it depends strongly on WHAT you
- > are trying to make faster through your assembler code.
- > My sort routine was 40 times faster in Assembler than in compiled
- > basic because it's a simple comparison task which can be coded
- > much more efficiently in assembler than in basic.
- > On the other hand, an assembler routine which draws 10000 lines
- > on a screen will hardly be faster than a basic equivalent for the
- > good reason that both are 99% of the CPU time in the same
- > OS library routine (drawline)!
- > For cryptic reasons the AMOS drawline command seems not to use
- > the OS library function, but it will if you use the Turbo extension.
- > The same program translated into BB2 will *NEVER* be 5 times faster.
- > You may easily get a speed-up of 5 with calculations, data manipulation
- > etc., but not with graphical output.
- > By the way: what kind of programs have you translated into BB2?
- > Any long programs? Do you have a translator or did you do it
- > by hand? I would be interested as I might switch to BB2 one day.
- > However, I doubt very much that ALL (or even a part) of
- > *real* programs (not just benchmarks!) will run 5 times faster
- > with BB2.
- >
- >
- > Greetings,
- >
- > Chris
- >
- >
- Dear Chris,
- Yes, your right, programs which deal with graphical operations should not
- be 5 times as fast. The progs which I translated were mostly
- calculations and structure type (a lot of loops, ifs, jumps) and after
- QUANTITATIVE observations I noticed increase in speed factor 5.
- As far as the translator, I was planning to actually write a thing like
- that but dont have enough time on my hands. Maybe in the future...
-
- Chris Wysocki
-
-